package Eval_Segment;

import java.util.ArrayList;

public class SegmentResult {

	/**
	 * @param args
	 */
	int goldSetnum =0;
	int testSetnum =0;
	int rightnum = 0;
	double P =0.0;
	double R=0.0;
	double F = 0.0;

	ArrayList<Integer> wrongnumlist = new ArrayList<Integer>();
	
	public boolean  Cal(){
		if(this.goldSetnum<=0||this.testSetnum<=0)
			return false;
		R= (double)(this.rightnum)/this.goldSetnum;
		P = (double)(this.rightnum)/this.testSetnum;
		F = 2*P*R/(P+R);
		return true;
	}
	public String toString(){
		String temp = "P: "+P+" R "+R+" F:"+F;
		return temp;
	}
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

	
}
